'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
    const { router, controller } = app;
    router.get('/', controller.home.index);

    // 获取验证码
    router.get('/code', controller.home.code);
    router.post('/login', controller.home.login);
};
